<%@ page import="auctionhaus.Customer" %>

<div class="fieldcontain ${hasErrors(bean: customerInstance, field: 'email', 'error')} required">
	<label for="email">
		<g:message code="customer.email.label" default="Email" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="email" name="email" required="" value="${customerInstance?.email}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: customerInstance, field: 'password', 'error')} required">
    <label for="password">
        <g:message code="customer.password.label" default="Password" />
        <span class="required-indicator">*</span>
    </label>
    <g:if test="${customerInstance?.password}">
        <g:passwordField name="password" maxlength="18" required="" value="xxxxxxxx"/>
    </g:if>
    <g:if test="${!customerInstance?.password}">
        <g:passwordField name="password" maxlength="18" required="" value=""/>
    </g:if>
</div>

